import javax.swing.JOptionPane;

import decisionLines.model.DecisionLinesEvent;
import decisionLines.view.Application;
/**
 * Decision Lines Project
 * 
 * Demonstrates the ability to create entities, boundaries, 
 * and controllers.
 * 
 * Timothy Chemacki
 * Spenser Davison
 * Joseph Dotta
 * Peter Kurczy
 */
public class Main {
	public static void main(String[] args) {

		/** Get the number of choices / lines (n) from a dialog box */
		Object[] possibilities = {3, 4, 5, 6, 7, 8};
		Integer n = Integer.parseInt(JOptionPane.showInputDialog(
				null,							//Object component
				"Enter the number of choices",	//Message
				"Number of Choices",			//Message title
				JOptionPane.PLAIN_MESSAGE,		//Message Type
				null,							//icon
				possibilities,					//Options
				possibilities[0]).toString());	//initial choice & convert object to string


		/** Get the number of rounds (m) from a dialog box */
		Integer m = Integer.parseInt(JOptionPane.showInputDialog(
				null,							//Object component
				"Enter the number of rounds",	//Message
				"Number of Rounds",			    //Message title
				JOptionPane.PLAIN_MESSAGE,		//Message Type
				null,							//icon
				possibilities,					//Options
				possibilities[0]).toString());	//initial choice & convert object to string


		DecisionLinesEvent event = new DecisionLinesEvent(n, m);
		Application app = new Application(event);

		app.setVisible(true);
	}
}